#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;

class Solution {
public:
    uint32_t reverseBits(uint32_t n) {
        int res = 0;
        for(int i = 0; i<32;i++){
            res|=n&(1<<i)==0?0:(1<<(31-i));
        }
        return res;
    }
};
